﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using QuanLyGiaoVuDAL.Repositories.DatabaseRepositories;
using QuanLyGiaoVuDAL.DTO;


namespace QuanLyGiaoVuService.ReportServices
{
    public class ThongBaoReportService:IThongBaoReportService
    {
        private IThongBaoRepository _thongBaoRepository;
        public ThongBaoReportService(IThongBaoRepository thongBaoRepository)
        {
            _thongBaoRepository = thongBaoRepository;
        }
        public ThongBaoDTO GetThongBaoById(Guid MaThongBao)
        {
            return _thongBaoRepository.GetThongBaoById(MaThongBao);
        }

        public IEnumerable<ThongBaoDTO> GetAllThongBao(Guid? maNguoiGui)
        {
            return _thongBaoRepository.GetAllThongBao(maNguoiGui);
        }
    }
}
